package com.walnut.dao;

import com.walnut.pojo.Order;

import java.sql.SQLException;
import java.util.List;

public interface OrderDao {

    List<Order> selectByConditions(String goodsName, String priceStr, String goodsType, String loginer) throws SQLException;

    public List<Order> select() throws SQLException;

    public Order selectById(Integer goodsId) throws SQLException;

    public int selectByName(String goodsName) throws SQLException;

    public int insert(Order order) throws Exception;

    public int update(Order order) throws SQLException;

    public int delete(Integer goodsId) throws SQLException;

}
